package com.shfl.app;

import com.shfl.stock.Stock;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;

public class Second extends Application {
 
	@Override
	public void start(Stage primaryStage) throws Exception{
		Stock.SECOND_STAG = primaryStage;
        Parent root = FXMLLoader.load(getClass().getResource("/fxml/Woking.fxml"));
        Stock.SECOND_STAG.setTitle("泰噗考勤");
        Stock.SECOND_STAG.getIcons().add(new Image("/path/taipu.png"));
        Stock.SECOND_STAG.setScene(new Scene(root));
        Stock.SECOND_STAG.show(); 
    }
 
	public void  showWindow() throws Exception {
		start(Stock.SECOND_STAG);
	}
	
	@Override
	public void stop() throws Exception {
		Stock.SECOND_STAG.hide();
	}
}